import axios from './axios';
import url from './serverAPI.config';

export default {
  sendMsg: (data: any) => {
    return axios(url.sendMsg,data,'post',false)
  },
  login: (data: any) => {
    return axios(url.login,data,'post',false)
  },
  loginV2: (data: any) => {
    return axios(url.loginV2,data,'post',false)
  },
  businessList: (data: any) => {
    return axios(url.businessList,data,'post',false)
  },
  businessDetail: (data: any) => {
    return axios(url.businessDetail,data,'post',false)
  },
  activeList: (data: any) => {
    return axios(url.activeList,data,'post',false)
  },
  activeDetail: (data: any) => {
    return axios(url.activeDetail,data,'post',false)
  },
  newsList: (data: any) => {
    return axios(url.newsList,data,'post',false)
  },
  newsDetail: (data: any) => {
    return axios(url.newsDetail,data,'post',false)
  },
  businessInsert: (data: any) => {
    return axios(url.businessInsert,data,'post',true)
  },
  indexInfo:(data: any) => {
    return axios(url.indexInfo,data,'post',true)
  },
  concatInfo:(data: any) => {
    return axios(url.concatInfo,data,'post',true)
  },
  getCard:(data: any) => {
    return axios(url.getCard,data,'post',true)
  },
  cardList:(data: any) => {
    return axios(url.cardList,data,'post',true)
  },
  useCard:(data: any) => {
    return axios(url.useCard,data,'post',true)
  },
  cardDelete:(data: any) => {
    return axios(url.cardDelete,data,'post',true)
  },
  cardVisit:(data: any) => {
    return axios(url.cardVisit,data,'post',true)
  },
  wxlogin:(data: any) => {
    return axios(url.wxlogin,data,'post',true)
  },
  wxgetTel:(data: any) => {
    return axios(url.wxgetTel,data,'post',true)
  },
  getSchoolEnter:() => {
    return axios(url.getSchoolEnter,{},'post',true)
  },
  ajaxUType:() => {
    return axios(url.getUType,{},'post',true)
  },
  ajaxUSubType:(data: any) => {
    return axios(url.getUSubType,data,'post',true)
  },
  ajaxTopBusiness:(data: any) => {
    return axios(url.ajaxTopBusiness,data,'post',true)
  },
  ajaxFilterBusiness:(data: any) => {
    return axios(url.ajaxFilterBusiness,data,'post',true)
  },
  ajaxBusinessDetail:(data: any) => {
    return axios(url.ajaxBusinessDetail,data,'post',true)
  },
  ajaxAddOrder:(data: any) => {
    return axios(url.ajaxAddOrder,data,'post',true)
  },
  ajaxOrderInfo:(data: any) => {
    return axios(url.ajaxOrderInfo,data,'post',true)
  },
  ajaxPay:(data: any) => {
    return axios(url.ajaxPay,data,'post',true)
  },
  ajaxUpdateOrderStatus:(data: any) => {
    return axios(url.ajaxUpdateOrderStatus,data,'post',true)
  },
  ajaxOrderList:(data: any) => {
    return axios(url.ajaxOrderList,data,'post',true)
  },
  ajaxDeleteOrder:(data: any) => {
    return axios(url.ajaxDeleteOrder,data,'post',true)
  },
  ticketStatus:(data: any) => {
    return axios(url.ticketStatus,data,'post',true)
  },
  version:() => {
    return axios(url.version,{},'post',true)
  },
  nsBusinessList:(data: any) => {
    return axios(url.nsBusinessList,data,'post',true)
  },
  nsBusinessDetail:(data: any) => {
    return axios(url.nsBusinessDetail,data,'post',true)
  },
  nsTelText:(data: any) => {
    return axios(url.nsTelText,data,'post',true)
  },
  nsAddOrder:(data: any) => {
    return axios(url.nsAddOrder,data,'post',true)
  },
  nsPay:(data: any) => {
    return axios(url.nsPay,data,'post',true)
  },
  nsOrderPrepay:(data: any) => {
    return axios(url.nsOrderPrepay,data,'post',true)
  },
  nsDeleteOrder:(data: any) => {
    return axios(url.nsDeleteOrder,data,'post',true)
  },
  nsTelList:(data: any) => {
    return axios(url.nsTelList,data,'post',true)
  },
  nsOrderList:(data: any) => {
    return axios(url.nsOrderList,data,'post',true)
  },
  nsTicketStatus:(data: any) => {
    return axios(url.nsTicketStatus,data,'post',true)
  },
};
